<?php
$this->breadcrumbs = array(
    'Background Manager' => array('index')
);
?>
<div class="box">
    <header>
        <h5>Background Manager</h5>
    </header>
    <div class="body">
	<form action='' method="post" enctype="multipart/form-data">
	    <?php
	    foreach ($aImgs as $img) {
		?>
    	    <div class="background-add">
    		<img src="<?php echo SITE_NAME_URL ?>timthumb.php?src=<?php echo UPLOAD_URL_BACKGROUND . $img['name'] ?>&w=150&h=100"/>  
    		<input type="checkbox" value="<?php echo $img['name']; ?>" name="name-img[]"/>
    	    </div>
		<?php
	    }
	    ?>
	    <div class="clear"></div>
	    <br/>
	    <input type="file" name="image-insert" />
	    <br/>
	    <br/>
	    <input name="deleteimg" type="submit" class="btn btn-info" value="Delete image"/>
	    <input name="addimg" type="submit" class="btn btn-info" value="Add image"/>
	</form>
    </div>
</div>